﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frm_RolesAllot.aspx.cs" Inherits="Mod_PopedomManage_frm_RolesAllot" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
        <base target="_self"/>
        <script language="javascript" src="../App_script/index.js"></script>
        <link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>
        <script language="javascript" src="../XMLHttpRequest/xmlhttprequest.js"></script>
    </head>
    <body rightmargin="0" topmargin="0" bottommargin="0" leftmargin="0" onkeydown="FocusChangNext()">
        <form id="AddUserInfo" runat="server">
            <input type="hidden" id="hidUserID" runat="server" style="width:0; height:0">
            <input type="hidden" id="hidMenuID" runat="server" style="width:0; height:0">
            <table width="500" height="400" background="../App_Images/b_27_1.gif" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
                        <asp:panel ID="pan0" runat="server" Visible="true">
                            <table width="500" height="400" cellpadding="0" cellspacing="0" border="0">
                                <tr><td height="10"></td><td></td><td></td></tr>
                                <tr>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;未授权菜单列表<asp:label ID="lblMenu1" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                            <tr>
                                                <td align="center"><asp:ListBox ID="lstBox1" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="50" align="center"><br><br><br><br>
                                        <asp:Button ID="btnAdd" runat="server" Text="添加 " Width="50px" OnClick="MenuMove" CommandName="0" /><br><br>
                                        <asp:Button ID="btnRmove" runat="server" Text="作废" Width="50px" OnClick="MenuMove" CommandName="1" /><br><br><br>
                                        <asp:Button ID="btnSumbit" runat="server" Text="确定" Width="50px" OnClick="btnSumbit_Click" /><br><br>
                                        <asp:Button ID="btnCancel" runat="server" Text="取消" Width="50px" OnClientClick="window.close();" />
                                    </td>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                           <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;已授权菜单列表<asp:label ID="lblMenu2" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                           <tr>
                                               <td align="center"><asp:ListBox ID="lstBox2" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                           </tr> 
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </asp:panel>
                        <asp:panel ID="pan1" runat="server" Visible="false">
                            <table width="500" height="400" cellpadding="0" cellspacing="0" border="0">
                                <tr><td height="10"></td><td></td><td></td></tr>
                                <tr>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;&nbsp;已授权页面菜单列表</td>
                                            </tr>
                                            <tr>
                                                <td align="center"><asp:ListBox ID="lstBox3" runat="server" Height="320px" Width="180px" CssClass="text" AutoPostBack="True" OnSelectedIndexChanged="SelectedIndexChanged"></asp:ListBox></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="50" align="center"><br><br><br><br><br><br><br><br><br><br>
                                        <asp:Button ID="btnSubmit1" runat="server" Text="确定" Width="50px" OnClick="btnSubmit1_Click" /><br><br>
                                        <asp:Button ID="btnCancel1" runat="server" Text="取消" Width="50px" OnClientClick="window.close();" />
                                    </td>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                           <tr>
                                                <td height="15" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;对应页面按钮授权列表</td>
                                            </tr>
                                           <tr>
                                               <td align="center">
                                                    <div align="left" style="border-right: #7f9db9 1px solid; border-top: #7f9db9 1px solid; overflow: auto; border-left: #7f9db9 1px solid; width: 180px; border-bottom: #7f9db9 1px solid; height: 310px">
                                                        <asp:datagrid ID="dgrd0" runat="server" CssClass="text" Height="20px" ShowHeader="False" Width="100%" AutoGenerateColumns="False" BorderWidth="0px" CellPadding="0">
                                                            <Columns>
                                                                <asp:TemplateColumn>
                                                                    <ItemTemplate>
                                                                        <table align="left" height="20" width="100%" cellpadding="0" cellspacing="0" border="0">
                                                                            <tr id='trRs' runat="server">
                                                                                <td>&nbsp;&nbsp;<asp:CheckBox ID="chkRsSelect" Text='<%# DataBinder.Eval(Container.DataItem, "b_name")%>'  CssClass="text" onclick="ChangTrBgColorByDataGrid(this, 'trRs','chkRsSelect')" style="cursor:hand" Visible="true" runat="server" /></td>
                                                                            </tr>
                                                                        </table>
                                                                    </ItemTemplate>
                                                                </asp:TemplateColumn>
                                                                <asp:BoundColumn DataField="b_id" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                                            </Columns>
                                                            <AlternatingItemStyle BackColor="#EEEFF2" />
                                                        </asp:datagrid><br>
                                                        &nbsp;<asp:CheckBox ID="chkPriceVisible" runat="server" Visible="false" CssClass="text" Font-Bold="True" Text="价格可见性" Checked="True" ForeColor="#183184" />
                                                    </div>
                                               </td>
                                           </tr> 
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </asp:panel>
                        <asp:panel ID="pan2" runat="server" Visible="false">
                            <table width="500" height="400" cellpadding="0" cellspacing="0" border="0">
                                <tr><td height="10"></td><td></td><td></td></tr>
                                <tr>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;未授权部门列表<asp:label ID="lblDept1" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                            <tr>
                                                <td align="center"><asp:ListBox ID="lstDept1" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="50" align="center"><br><br><br><br>
                                        <asp:Button ID="btnAdd2" runat="server" Text="添加 " Width="50px" OnClick="DeptMove" CommandName="0" /><br><br>
                                        <asp:Button ID="btnRmove2" runat="server" Text="作废" Width="50px" OnClick="DeptMove" CommandName="1" /><br><br><br>
                                        <asp:Button ID="btnSumbit2" runat="server" Text="确定" Width="50px" OnClick="btnSumbit2_Click"  /><br><br>
                                        <asp:Button ID="btnCancel2" runat="server" Text="取消" Width="50px" OnClientClick="window.close();" />
                                    </td>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                           <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;已授权部门列表<asp:label ID="lblDept2" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                           <tr>
                                               <td align="center"><asp:ListBox ID="lstDept2" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                           </tr> 
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </asp:panel>
                        <asp:panel ID="pan3" runat="server" Visible="false">
                            <table width="500" height="400" cellpadding="0" cellspacing="0" border="0">
                                <tr><td height="10"></td><td></td><td></td></tr>
                                <tr>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;未授权仓库列表<asp:label ID="lblDepot1" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                            <tr>
                                                <td align="center"><asp:ListBox ID="lstDepot1" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="50" align="center"><br><br><br><br>
                                        <asp:Button ID="btnAdd3" runat="server" Text="添加 " Width="50px" OnClick="DepotMove" CommandName="0" /><br><br>
                                        <asp:Button ID="btnRmove3" runat="server" Text="作废" Width="50px" OnClick="DepotMove" CommandName="1" /><br><br><br>
                                        <asp:Button ID="btnSumbit3" runat="server" Text="确定" Width="50px" OnClick="btnSumbit3_Click"  /><br><br>
                                        <asp:Button ID="btnCancel3" runat="server" Text="取消" Width="50px" OnClientClick="window.close();" />
                                    </td>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                           <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;已授权仓库列表<asp:label ID="lblDepot2" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                           <tr>
                                               <td align="center"><asp:ListBox ID="lstDepot2" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                           </tr> 
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </asp:panel>
                        <asp:panel ID="pan4" runat="server" Visible="false">
                            <table width="500" height="400" cellpadding="0" cellspacing="0" border="0">
                                <tr><td height="10"></td><td></td><td></td></tr>
                                <tr>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;未授权商品类别列表<asp:label ID="lblProductType1" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                            <tr>
                                                <td align="center"><asp:ListBox ID="lstProductType1" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="50" align="center"><br><br><br><br>
                                        <asp:Button ID="btnAdd4" runat="server" Text="添加 " Width="50px" OnClick="ProductTypeMove" CommandName="0" /><br><br>
                                        <asp:Button ID="btnRmove4" runat="server" Text="作废" Width="50px" OnClick="ProductTypeMove" CommandName="1" /><br><br><br>
                                        <asp:Button ID="btnSumbit4" runat="server" Text="确定" Width="50px" OnClick="btnSumbit4_Click"  /><br><br>
                                        <asp:Button ID="btnCancel4" runat="server" Text="取消" Width="50px" OnClientClick="window.close();" />
                                    </td>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                           <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;已授权商品类别列表<asp:label ID="lblProductType2" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                           <tr>
                                               <td align="center"><asp:ListBox ID="lstProductType2" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                           </tr> 
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </asp:panel>
                        <asp:panel ID="pan5" runat="server" Visible="false">
                            <table align="center" width="400" height="380" cellpadding="0" cellspacing="0" border="0" class="text">
                                <tr height="50">
                                    <td style="width: 93px;"></td>
                                    <td style="width: 65px"></td>
                                    <td style="width: 50px"></td>
                                    <td style="width: 50px"></td>
                                    <td style="width: 10px"></td>
                                    <td></td>
                                    <td style="width: 47px"></td>
                                    <td></td>
                                </tr>
                                <tr height="30">
                                    <td style="font-weight: bold; color: #183184; width: 93px; height: 40px;">销售价格调整：</td>
                                    <td style="width: 65px; height: 40px;"></td>
                                    <td style="width: 50px; height: 40px;"></td>
                                    <td style="width: 50px; height: 40px;"></td>
                                    <td style="width: 10px; height: 40px;"></td>
                                    <td style="height: 40px"></td>
                                    <td style="width: 47px"></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td align="right" style="width: 93px; height: 40px;">单价：</td>
                                    <td style="width: 65px; height: 35px;"><asp:CheckBox ID="chkBox1" runat="server" CssClass="text" Text="可修改" AutoPostBack="True" OnCheckedChanged="chkBox1_CheckedChanged" /></td>
                                    <td align="right" style="width: 50px; height: 40px;">上调：</td>
                                    <td align="left" style="width: 50px; height: 40px;"><asp:TextBox ID="txt1" runat="server" CssClass="text" Width="43px" Enabled="False">0</asp:TextBox></td>
                                    <td style="width: 10px;color: red;">%</td>
                                    <td align="right" style="width: 50px; height: 40px;">下调：</td>
                                    <td align="left" style="height: 35px; width: 47px;"><asp:TextBox ID="txt2" runat="server" CssClass="text" Width="40px" Enabled="False">0</asp:TextBox></td>
                                    <td style="color: red;">%</td>
                                </tr>
                                <tr>
                                    <td align="right" style="width: 93px; height: 40px;">折扣率：</td>
                                    <td style="width: 65px; height: 35px;"><asp:CheckBox ID="chkBox2" runat="server" CssClass="text" Text="可修改" AutoPostBack="True" OnCheckedChanged="chkBox2_CheckedChanged" /></td>
                                    <td align="right" style="width: 50px; height: 40px;">上调：</td>
                                    <td align="left" style="width: 50px; height: 40px;"><asp:TextBox ID="txt3" runat="server" CssClass="text" Width="43px" Enabled="False">0</asp:TextBox></td>
                                    <td style="width: 10px;color: red;">%</td>
                                    <td align="right" style="width: 50px; height: 40px;">下调：</td>
                                    <td align="left" style="height: 35px; width: 47px;"><asp:TextBox ID="txt4" runat="server" CssClass="text" Width="40px" Enabled="False">0</asp:TextBox></td>
                                    <td style="color: red;">%</td>
                                </tr>
                                <tr>
                                    <td height="20" colspan="8" align="center"><hr color="#c0c4d6" style="width: 356px" /></td>
                                </tr>
                                <tr>
                                    <td height="50" colspan="8" align="center">
                                        <asp:Button ID="btnSubmit5" runat="server" Height="30px" OnClick="btnSubmit5_Click" Style="cursor: hand" Text="确 定" ToolTip="确定" Width="70px" />&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:Button ID="btnCalean" runat="server" Height="30px" OnClientClick="window.close();" Style="cursor: hand" Text="取 消" ToolTip="取消" Width="70px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="100" colspan="8" align="center"></td>
                                </tr>
                            </table>
                        </asp:panel>
                        <asp:panel ID="pan6" runat="server" Visible="false">
                            <table width="500" height="400" cellpadding="0" cellspacing="0" border="0">
                                <tr><td height="10"></td><td></td><td></td></tr>
                                <tr>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;未授权客户类别列表<asp:label ID="lblOderType1" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                            <tr>
                                                <td align="center"><asp:ListBox ID="lstOderType1" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="50" align="center"><br><br><br><br>
                                        <asp:Button ID="btnAdd6" runat="server" Text="添加 " Width="50px" OnClick="OderTypeMove" CommandName="0" /><br><br>
                                        <asp:Button ID="btnRmove6" runat="server" Text="作废" Width="50px" OnClick="OderTypeMove" CommandName="1" /><br><br><br>
                                        <asp:Button ID="btnSumbit6" runat="server" Text="确定" Width="50px" OnClick="btnSumbit6_Click"  /><br><br>
                                        <asp:Button ID="btnCancel6" runat="server" Text="取消" Width="50px" OnClientClick="window.close();" />
                                    </td>
                                    <td width="220" align="center" valign="top">
                                        <table width="204" height="345" background="../App_Images/b_43.gif" cellpadding="0" cellspacing="0" border="0">
                                           <tr>
                                                <td height="20" style="font-weight: bold; color: #183184;" class="text" align="left">&nbsp;已授权客户类别列表<asp:label ID="lblOderType2" runat="server" ForeColor="Red"/></td>
                                            </tr>
                                           <tr>
                                               <td align="center"><asp:ListBox ID="lstOderType2" runat="server" Height="320px" Width="180px" SelectionMode="Multiple" CssClass="text"></asp:ListBox></td>
                                           </tr> 
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </asp:panel>
                    </td>
                </tr>
            </table>
            <asp:label ID="lblJs" runat="server"/>
        </form>
    </body>
</html>